<?php $this->load->view('header/standard'); ?>
<div id="main">
	<div class="container">
        <div class="span-17 colborder" id="content">
            <?php if (isset($messages)) echo $messages; ?>

	        <div id="submenu-container" class="span-17 last">
	            <?php $this->load->view('menu/profile'); ?>
	        </div>

            <form action="" method="post">
	            <div class="span-16 last box">
				    <div id="" class="span-8">
				        <p>
				            <label for="name"><?=lang('profile.Name')?>: </label>
				            <?php echo form_input('name',set_value('name', $person->name)); ?>
				        </p>
				        <p class="">
				            <label for="email_primary"><?=lang('profile.EMail')?>: </label> 
				            <?php echo form_input('email_primary',set_value('email_primary', $person->email_primary)); ?>
				        </p>
		                <p class="prepend-top">
		                    <label for="gender" class="inlined" style="display: inline;"><?=lang('profile.Gender')?>: </label> 
		                    <?php echo form_dropdown('gender', array(
		                        'M' => lang('profile.Male'),
		                        'F' => lang('profile.Female'),
		                        'O' => lang('profile.Other')), $person->gender); 
		                ?></p>
		                <p class="prepend-top">
		                    <label for="nac_type"><?=lang('profile.NAC_ID')?>: </label> 
		                    <?php echo form_dropdown('nac_type', array(
		                        'LE' => 'Libreta Enrolamiento',
		                        'LC' => 'Libreta Civica',
		                        'PASS' => 'Pasaporte',
		                        'DNI' => 'DNI',
		                        'CI' => 'Cedula Identidad'), $person->nac_type); ?>
		                    <?php echo form_input('nac',set_value('nac', $person->nac)); ?>
		                </p>
				    </div>
				    <div id="" class="span-7 last">
		                <p>
		                    <label for="email_alternate"><?=lang('profile.Alternative_Email')?>: </label> 
		                    <?php echo form_input('email_alternate',set_value('email_alternate', $person->email_alternate)); ?>
		                </p>
		                <p class="prepend-top">
		                    <label for="phone_work"><?=lang('profile.Phone_Work')?>: </label> 
		                    <?php echo form_input('phone_work',set_value('phone_work', $person->phone_work)); ?>
		                </p>
		                <p class="">
		                    <label for="phone_home"><?=lang('profile.Phone_Home')?>: </label> 
		                    <?php echo form_input('phone_home',set_value('phone_home', $person->phone_home)); ?>
		                </p>
		                <p class="">
		                    <label for="phone_mobile"><?=lang('profile.Phone_Mobile')?>: </label> 
		                    <?php echo form_input('phone_mobile',set_value('phone_mobile', $person->phone_mobile)); ?>
		                </p>
		            </div>
	            </div> <!--  end first row -->
	            <div id="" class="span-16 last box">
	                <div id="" class="span-8">
		                <p class="">
		                    <label for="address_line_1"><?=lang('profile.Address')?>: </label> 
		                    <?php echo form_input('address_line_1',set_value('address_line_1', $person->address_line_1)); ?>
		                    <?php echo form_input('address_line_2',set_value('address_line_2', $person->address_line_2)); ?>
		                </p>
                        <p class="">
                            <label for="location"><?=lang('profile.Location')?>: </label> 
                            <?php echo form_input('location',set_value('location', $person->location)); ?>
                        </p>
	                </div>
	                <div id="" class="span-7 last">
		                <p class="">
		                    <label for="postcode"><?=lang('profile.Postcode')?>: </label> 
		                    <?php echo form_input('postcode',set_value('postcode', $person->postcode)); ?>
		                </p>
		                <p>
		                    <label for="country_code"><?=lang('profile.Country')?>: </label> 
		                    <?php echo form_input('country_code',set_value('country_code', $person->country_code)); ?>
		                </p>
	                </div>
                </div> <!--  end first row -->
	            <div class="span-16 last form-actions-panel">
	                <?php echo form_submit('action',lang('profile.Update')); ?>
	            </div>
            </form>
        </div> <!-- end content -->
        <div class="span-6 last" id="sidebar">
            <?php $this->load->view('menu/sidebar', array('person' => $person, 'context' => 'person'))?>
        </div> <!-- end sidebar -->
    </div> <!-- end container -->
</div> <!-- end main -->
<?php $this->load->view('footer/standard');?>
